<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('pno/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>

    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['pno_no']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_no']->renderError() ?>
          <?php echo $form['pno_no'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_name']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_name']->renderError() ?>
          <?php echo $form['pno_name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_desc']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_desc']->renderError() ?>
          <?php echo $form['pno_desc'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_fdesc']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_fdesc']->renderError() ?>
          <?php echo $form['pno_fdesc'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_uq']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_uq']->renderError() ?>
          <?php echo $form['pno_uq'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_minorq']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_minorq']->renderError() ?>
          <?php echo $form['pno_minorq'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_maxorq']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_maxorq']->renderError() ?>
          <?php echo $form['pno_maxorq'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_orq']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_orq']->renderError() ?>
          <?php echo $form['pno_orq'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_src']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_src']->renderError() ?>
          <?php echo $form['pno_src'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_abc']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_abc']->renderError() ?>
          <?php echo $form['pno_abc'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_sfq']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_sfq']->renderError() ?>
          <?php echo $form['pno_sfq'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_rop']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_rop']->renderError() ?>
          <?php echo $form['pno_rop'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_eoq']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_eoq']->renderError() ?>
          <?php echo $form['pno_eoq'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_pp']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_pp']->renderError() ?>
          <?php echo $form['pno_pp'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pno_bom']->renderLabel() ?></th>
        <td>
          <?php echo $form['pno_bom']->renderError() ?>
          <?php echo $form['pno_bom'] ?>
        </td>
      </tr>
      <tr>
        <th>
            <?PHP echo $form["pno_status"]->renderLabel() ?>
        </th>
        <td>
          <?php echo $form['pno_status']->renderError() ?>
          <?PHP echo $form["pno_status"] ?>
          <?php echo $form['pno_opr'] ?>
          <?php echo $form['acct_set_id'] ?>
        </td>
      </tr>

    </tbody>
    
    <tfoot>
      <tr>
        <td colspan="2" align="center">
          <?php echo $form->renderHiddenFields(false) ?>
          &nbsp;<a href="<?php echo url_for('pno/index') ?>">返回</a>
          <?php if (!$form->getObject()->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'pno/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value="保存" />
        </td>
      </tr>
    </tfoot>
  </table>


</form>
